package com.lijiajian.controller;

import com.lijiajian.Service.OrderDetailsService;
import com.lijiajian.base.BaseController;
import com.lijiajian.query.CustomerOrderQuery;
import com.lijiajian.query.OrderDetailsQuery;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.Map;

@Controller
@RequestMapping("orderDetail")
public class OrderDetailsController extends BaseController {
    @Resource
    private OrderDetailsService orderDetailsService;

    @GetMapping("orderDetailList")
    @ResponseBody
    public Map<String,Object> queryCustomerOrderByParams(OrderDetailsQuery orderDetailsQuery){
        return orderDetailsService.queryOrderDetailsByParams(orderDetailsQuery);
    }


}
